package com.zhg.model.auto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author 达瓦里氏
 * @since 2021-12-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class News extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 资讯id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资讯标题
     */
    private String title;

    /**
     * 类别id
     */
    @TableField("classId")
    private String classId;


    /**
     * 图片路径
     */
    private String img;

    /**
     * 浏览次数
     */
    private String watch;

    /**
     * 发布机构
     */
    private String body;



    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createTime;

    @TableField("updateTime")
    private LocalDateTime updateTime;


}
